<template>
	
	<div style="text-align: center; padding: 6em 0;">
		<div class="area" v-for="item,index in enterlist">
			<img class="area_img" :src="item.headerimg" />
			<h3 class="div3">{{item.title}}</h3>
			<p class="div4">{{item.detail}}</p>
			<footer>
				<div  class="area_button" @click="linkto(item.link)">ToGo</div>
			</footer>
		</div>
	</div>
</template>

<script>
	
export default {
  name: 'IndexArea',
  props: [
    'enterlist'   //图像img 标题title 描述detail
  ],
  data(){
  	  return {
  		 
  	  }
  },
  methods:{
  	  
  		linkto:function(link){
  			
  			this.timer = setTimeout(()=>{   
  			            window.location.href =link;           
  			                   },500);
  		}
  		
  }
  
}
	
</script>

<style scoped>
	
.area{
	position: relative;
	display: inline-block;
	
	width: 19%;
	border-right: 1px solid #dbdbdb;
}

.area_img{
	width: 80px;
	height: 80px;
}

.area_button{
	background-color: #5385c1;
	color: #ffffff !important;
	cursor: pointer;
	display: inline-block;
	
	padding:0.75em 1.5em;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
}
a:hover{
	filter: brightness(1.1);
}

</style>
